Learn R Programming

bnstruct (version 1.0)

variables<-: set variables of an object.

Description

Set the list of variable names in a BN or BNDataset object.

Usage

variables(x) <- value
"variables"(x) <- value
"variables"(x) <- value

Arguments

x
an object.
value
vector containing the variable names of the object. Overwrites num.nodes slot if non-matching.